﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using A2DFramework.BusinessExceptionService.Configuration;
using A2DFramework.InstanceService;
using A2DFramework.ValidationService;
using A2DFramework.BusinessExceptionService.DataLoggerProviders;

namespace A2DFramework.BusinessExceptionService
{
    public static class Starter
    {
        public static void Init()
        {
            BESConfig.Load();

            ObjectFactory.RegisterAsSingleton<IDataLogger, MongoDBDataLogger>();
            ObjectFactory.RegisterAsSingleton<IValidatorExecutor, BusinessExceptionValidatorExecutor>();
        }
    }
}
